package com.tanhua.api.db;

import com.tanhua.domain.db.Answers;
import com.tanhua.domain.db.SoulQuestionOption;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Richard Wang
 * @date 2021/9/5 14:49
 */
public interface SoulQuestionOptionApi {


    Integer checkScore(ArrayList<Answers> answersList);


    /**
     * 保存 问题选项
     * @param soulQuestionOption
     */
    void save(SoulQuestionOption soulQuestionOption);


    /**
     * 根据问题 id 查询选项
     * @param questionId
     * @return
     */
    List<SoulQuestionOption> findByQuestionId(Integer questionId);

    /**
     * 根据 questionId 删除
     * @param questionId
     */
    void deleteByQuestionId(Integer questionId);
}
